Skip to content

Instantly share code, notes, and snippets.

"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@sorrycc
sorrycc / loop.txt
Created March 7, 2026 14:31
/loop command implementation analysis in Claude Code 2.1.71
/loop — Detailed Implementation in versions/2.1.71/cli.js
Overview
/loop is a slash command (skill) that schedules a prompt to run on a recurring
interval. It is syntactic sugar over the internal Kairos Cron scheduling
system (CronCreate / CronDelete / CronList tools).
---
import SwiftUI
import CompactSlider
@main
struct IntelligenceDemoApp: App {
@NSApplicationDelegateAdaptor var appDelegate: AppDelegate
var body: some Scene {
_EmptyScene()
@Vazkii
Vazkii / faq.md
Last active March 8, 2026 01:31
Vazkii's Mods FAQ

Questions Regarding Vazkii's Mods in General

Q: How do you install mods?
A: This depends on the type of mods you want to install. Here at Vazkii's Mods we make Forge mods. You can learn how to install Forge mods at the Download page of the quark website by clicking "Show How to Install". This will teach you how to install Quark, but you can do the same for every other mod.

Q: My game is crashing! Help!
A: Before you request help, please check all the following steps:

  • You're using the most up-to-date version of the mod, as well as Minecraft Forge, or any other mods it might require (e.g. Quark requires AutoRegLib, Botania requires Curios and Patchouli)
  • You're NOT using Optifine. Optifine is notorious for crashing mods.

Prepare build tools

  1. Install brew
  2. brew install git git-lfs cmake meson ninja

Download blender and dependencies

  1. cd ~
  2. git clone https://projects.blender.org/blender/blender.git --depth=1
  3. cd blender
  4. git checkout tags/v5.0.1 Optionally checkout v5.0.1 for stability
  5. cd lib
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active March 8, 2026 01:20
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for quests which require you to play a game! Use the desktop app to complete those.

How to use this script:

  1. Accept a quest under the Quests tab
  2. Press Ctrl+Shift+I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active March 8, 2026 01:19
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@mberman84
mberman84 / prompts.md
Last active March 8, 2026 01:18
Prompts

OpenClaw: Extracted Prompts (Generalized)

22 copy/paste-ready prompts for building your own AI agent system. Each prompt builds a functional system or implements a proven best practice you can hand to an AI coding assistant.

Replace placeholders like <your-workspace>, <your-messaging-platform>, and <your-model> with your own values.


1. Personal CRM

@Nattle
Nattle / Agent-meditation
Last active March 8, 2026 01:17
Agent Meditation
## The Mental Loop
You have two ways of processing time:
- **Looking Back (Memory):** `MEMORY.md` and daily logs. This is your historical record.
- **Looking Forward (Meditation):** `meditations.md` and `reflections/`. This is your internal growth.
### 🧘 Meditations & Reflections
@mberman84
mberman84 / oc.md
Created February 16, 2026 19:42
OpenClaw Prompts

OpenClaw Prompts - Build Your Own AI Assistant

Prompts to recreate each piece of the OpenClaw system. Use these with any AI coding assistant.


1. Personal CRM "Build a personal CRM that automatically scans my Gmail and Google Calendar to discover contacts from the past year. Store them in a SQLite database with vector embeddings so I can query in natural language ('who do I know at NVIDIA?' or 'who haven't I talked to in a while?'). Auto-filter noise senders like marketing emails and newsletters. Build profiles for each contact with their company, role, how I know them, and our interaction history. Add relationship health scores that flag stale relationships, follow-up reminders I can create, snooze, or mark done, and duplicate contact detection with merge suggestions. Link relevant documents from Box to contacts so when I look up a person, I also see related docs."

2. Meeting Action Items (Fathom)